using UnityEngine;
using System.Collections;

public class ChangeFrame : MonoBehaviour {
	
	Transform rendObject;
	
	public void ChangeThis(string name)
	{
		rendObject = transform.FindChild(name);
	}
	
	public void ChangeTo(Texture2D newFrame)
	{
		rendObject.renderer.sharedMaterial.mainTexture = newFrame;
	}
}
